package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.RelPackageRoute;
import com.ruoyi.system.domain.TourPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TourPackageMapper {

    int insertPackage(TourPackage tourPackage);

    int insertRelPackageRoute(@Param("list") List<RelPackageRoute> list);

    int updatePackage(TourPackage tourPackage);

    int delRelPackageRoute(List<RelPackageRoute> list);

    int delRelPackageRouteById(int packageId);

    int delPackage(int packageId);

    List<TourPackage> selectPackages();

    TourPackage selectPackageDetail(int packageId);

}
